package com.kaili.basic.pojo.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.kaili.common.pojo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName("mdm_group")
@ApiModel(description = "分组表")
@Data
@NoArgsConstructor
public class MdmGroupEntity extends BaseEntity {
    @ApiModelProperty(name = "id", value = "id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(name = "groupCode", value = "分组编号")
    private String groupCode;

    @ApiModelProperty(name = "groupName", value = "分组名称")
    private String groupName;

    @ApiModelProperty(name = "orgId", value = "机构id")
    private Long orgId;

    @ApiModelProperty(name = "parentId", value = "父分组id")
    private Long parentId;

    @ApiModelProperty(name = "remark", value = "remark")
    private String remark;

    @ApiModelProperty(name = "rdStatus", value = "数据状态")
    private Integer rdStatus;

    @ApiModelProperty(name = "lable", value = "lable")
    private String label;

    public MdmGroupEntity(Integer id, String groupName) {
        this.id = id;
        this.groupName = groupName;
    }
}
